<?php

namespace App\Admin\Controllers;

use App\Admin\Metrics\Examples;
use App\Http\Controllers\Controller;
use Dcat\Admin\Http\Controllers\Dashboard;
use Dcat\Admin\Layout\Column;
use Dcat\Admin\Layout\Content;
use Dcat\Admin\Layout\Row;
use Dcat\Admin\Widgets\Modal;
use Dcat\Admin\Widgets\Tab;

class HomeController extends Controller
{
    public function index(Content $content)
    {
        return $content
            ->header('')
            ->body(function (Row $row) {
                $row->column(12, function (Column $column) {
                    $column->row(view('admin.dashboard'));
                    
                });

                // $row->column(6, function (Column $column) {
                //     $column->row(new \App\Admin\Metrics\Home\NewUsers());

                // });
                $row->column(12, function (Column $column) {
                    $column->row(new \App\Admin\Metrics\Home\User());

                });
            });
    }

    public function home()
    {
        return view('admin.home');
    }   

}
